package com.asman.vr.dto

import androidx.annotation.Keep
import com.chad.library.adapter.base.entity.MultiItemEntity

@Keep
data class HomeCardListData(
    val type: Int?,// -1: 3D换搭  1链接 2视频  3：图文案例   4：3D全景图
    val tagName: String?,//标签
    val operationResourceVO: OperationResourceVO?,// 1 , 2
    val schemeVO: SchemeVO?//-1 , 3 , 4
) : MultiItemEntity {

    override val itemType: Int
        get() = when (type) {
            1, 2, 3 -> typeScheme143
            -1, 4 -> typeScheme178
            else -> typeScheme143
        }

    companion object {
        val typeScheme143 = 143//方案小卡片--143图片高度
        val typeScheme178 = 178//方案小卡片--178图片高度
    }
}

// -1: 3D换搭 3：图文案例   4：3D全景图
@Keep
data class OperationResourceVO(
    val contentLink: String?,
    val createdAt: String?,
    val buildingArea: Number?,
    val id: Long?,
    val mainImgs: List<String>?,
    val outline: String?,
    val status: Int?,
    val title: String?,
    val type: Int?,
    val updatedAt: String?,
    val styleName: String?,
    val bedroomNum: String?,//室
    val livingRoomNum: String?,//厅
    val bathroomNum: String?,//卫
    val kitchenNum: String?,//厨
    val balconyNum: String?//阳台
)

//1链接 2视频
@Keep
data class SchemeVO(
    val name: String?,
    val buildingArea: String?,
    val buildingName: String?,
    var collectNum: Int?,//收藏数
    var mobileIcon: String?,//标签图片地址
    var collected: Boolean?,//是否已收藏
    val houseParamStr: String?,
    val id: Long?,
    val image: String?,
    val isCancel: Int?,
    val price: Int?,
    val style: String?,
    val type: Int?,
    val vrType: Int?,
    val designerId: Long?,
    val designerHeadUrl: String?,//设计师头像
    val studioName: String//设计师店铺名称
)
